﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 类和类成员
{
    class Student
    {
            public string Name { get; set; }
            public string Class { get; set; }
            public string Major { get; set; }
            public string Achievement { get; set; }
            public override string ToString()
            {
                return string.Format("姓名：{0}；班级：{1}；专业：{2}；分数：{3}", Name, Class, Major, Achievement);
            }
        } 
    class program
    {
        static void Main (string[] args)
        {
            Student student = new Student
            {
                Name = "***",
                Class = "19级**班",
                Major = "软件技术",
                Achievement = "不及格",
            };
            Console.WriteLine(student.ToString());
        }
    }
}